package cn.bdqn;

import cn.bdqn.dto.Dto;
import cn.bdqn.pojo.User;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2018/8/17.
 */
@Controller
public class UserController {
    @RequestMapping(value="regedit",method = RequestMethod.POST,produces = "application/json")
    @ApiOperation(value = "这是注册页面",produces = "application/json",notes = "这个需要求你提交的是JSON数据")
    @ResponseBody
    public Dto regedit(@RequestParam User user) {
        Dto dto=new Dto();
        dto.setMsg("成功");
        dto.setCode("10086");
        return new Dto();
    }

}
